<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title>线路管理</title>
<link rel="stylesheet" href="${ctx}/my/css/pintuer.css">
<link rel="stylesheet" href="${ctx}/my/css/admin.css">
<script src="${ctx}/my/js/jquery.js"></script>
<script src="${ctx}/my/js/pintuer.js"></script>
<link rel="stylesheet" href="${ctx}/my/css/dataTables.bootstrap.min.css" />
<link rel="stylesheet" href="${ctx}/my/css/jquery.dataTables.min.css" />
<script
		src="${ctx}/my/js/jquery.dataTables.min.js"></script>
<script src="${ctx}/my/js/dataTables.bootstrap.min.js"></script>
</head>
<body>
		<div class="panel admin-panel" style="height:480px">
			<div class="panel-head">
				<strong class="icon-reorder">日志管理</strong> <a class="button border-main icon-plus-square-o" href="${ctx}/log/deleteAll"> 全部删除</a>
			</div>
			<table id="example" class="display" cellspacing="0" width="100%" style="text-align:center; line-height:25px"></table>
		</div>
</body>
<script type="text/javascript">
	$(document).ready(function() {
		$('#example').DataTable({
			"processing" : true,
			"serverSide" : true,
			"type" : "get",
			"ajax" : "${ctx}/log/getDataTable",
			"oLanguage": {
		         "sLengthMenu": "每页显示 _MENU_ 条记录",
		         "sZeroRecords": "对不起，查询不到任何相关数据",
		         "sInfo": "当前显示 _START_ 到 _END_ 条，共 _TOTAL_条记录",
		         "sInfoEmtpy": "找不到相关数据",
		         "sInfoFiltered": "数据表中共为 _MAX_ 条记录)",
		         "sProcessing": "正在加载中...",
		         "sSearch": "搜索",
		         "oPaginate": {
		         "sFirst": "第一页",
		         "sPrevious":" 上一页 ",
		         "sNext": " 下一页 ",
		         "sLast": " 最后一页 "
		         }
			},
			"columns" : [ {
				"width" : "150",
				"data" : "operatorName",
				"title" : "操作人"
			}, {
				"width" : "200",
				"data" : "describes",
				"title" : "描述"
			}, {
				"width" : "200",
				"data" : "remark",
				"title" : "备注"
			}, {
				"width" : "200",
				"data" : "date",
				"title" : "时间"
			} ]
		});
	});
</script>
</html>